package com.tjc.media.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 视频授权播放对象 t_video_auth
 * 
 * @author 大根教会
 * @date 2025-07-10
 */
public class VideoAuthVO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long authId;

    /** 视频地址 */
    @Excel(name = "视频地址")
    private String videoUrl;

    /** 授权手机号 */
    @Excel(name = "授权手机号")
    private String authPhone;

    /** 授权过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "授权过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryTime;

    /** 创建者id */
    @Excel(name = "创建者id")
    private Long createUserid;

    /** 更新者id */
    @Excel(name = "更新者id")
    private Long updateUserid;

    public void setAuthId(Long authId) 
    {
        this.authId = authId;
    }

    public Long getAuthId() 
    {
        return authId;
    }

    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }

    public void setAuthPhone(String authPhone) 
    {
        this.authPhone = authPhone;
    }

    public String getAuthPhone() 
    {
        return authPhone;
    }

    public void setExpiryTime(Date expiryTime) 
    {
        this.expiryTime = expiryTime;
    }

    public Date getExpiryTime() 
    {
        return expiryTime;
    }

    public void setCreateUserid(Long createUserid) 
    {
        this.createUserid = createUserid;
    }

    public Long getCreateUserid() 
    {
        return createUserid;
    }

    public void setUpdateUserid(Long updateUserid) 
    {
        this.updateUserid = updateUserid;
    }

    public Long getUpdateUserid() 
    {
        return updateUserid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("authId", getAuthId())
            .append("videoUrl", getVideoUrl())
            .append("authPhone", getAuthPhone())
            .append("expiryTime", getExpiryTime())
            .append("createUserid", getCreateUserid())
            .append("createTime", getCreateTime())
            .append("updateUserid", getUpdateUserid())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
